package com.jy.api.dao;

import com.jy.api.domain.PaymentStatus;
import com.jy.api.domain.WebRecharge;
import org.springframework.data.repository.CrudRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by lihu on 2017/10/21.
 */
public interface WebRechargeDao extends CrudRepository<WebRecharge, String> {

    /**
     * 获取时间段内所有支付中的支付数据
     *
     * @param status
     * @return
     */
    List<WebRecharge> findListByStatusAndUpdateTimeBetween(PaymentStatus status, Date from, Date to);


    /**
     * 获取时间段内所有支付中的支付数据
     *
     * @param status
     * @return
     */
    List<WebRecharge> findListByStatusAndSynchroAndUpdateTimeBetween(PaymentStatus status, Boolean synch, Date from, Date to);
}
